// Just a mock data


const constantRoutes = [
  {
    path: '/',
    component: 'layout/Layout',
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        component: () => import('@/views/atp_ecs/dashboard'),
        name: 'dashboard',
        meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
      }
    ]
  },
  {
    path: '/aliyun_ecs',
    component: 'layout/Layout',
    redirect: '/aliyun_ecs',
    children: [
      {
        path: '/aliyun_ecs',
        component: () => import('@/views/atp_ecs/index'),
        name: 'ECS',
        meta: { title: 'ECS', icon: 'dashboard', affix: false }
      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  }
]

const asyncRoutes = [
  { path: '*', redirect: '/404', hidden: true }
]

module.exports = {
  constantRoutes,
  asyncRoutes
}
